package com.qipay.sp.excutor.yuxiu;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import org.springframework.stereotype.Component;

@Component
public class YuxiuFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createWxTradeQueryExcutor() {
        return (YuxiuWxTradeQueryExcutor) SpringContextUtil.getBean(YuxiuWxTradeQueryExcutor.class);
    }

    @Override
    public AbstractExcutor createWxWapPayExcutor() {
        return (YuxiuWxWapPayExcutor) SpringContextUtil.getBean(YuxiuWxWapPayExcutor.class);
    }
}
